
if ( ! ( "mappl" in window ) ) window.mappl = {};

mappl.test1 = function() {
    var request = MapplRuntime.newRequest();
    
    request.ShowSelectedObjectsInTable( '__tmp_test' );
}

mappl.test2 = function() {
    var request = MapplRuntime.newRequest();
    
    request.ClearSelection();
}

mappl.test3 = function() {
    var context = MapplRuntime.getContext();
    var group   = context.getGroupByCode( '0' );
    group.flVisible.set( false );
    
    var request = MapplRuntime.newRequest();
    
    request.RedrawContext();
}

mappl.test4 = function() {
    var context = MapplRuntime.getContext();
    var group   = context.getGroupByCode( '0' );
    group.flVisible.set( true );
    
    var request = MapplRuntime.newRequest();
    
    request.RedrawContext();
}

mappl.test5 = function() {
    MapplRuntime.setWidth( 320 );
    MapplRuntime.setHeight( 200 );
    MapplRuntime.refreshMap();
}

mappl.test6 = function() {
    var context = MapplRuntime.getContext();
    var layer   = context.getLayerByCode( '11' );
    layer.tableName.set( 'dura' );
    
    var request = MapplRuntime.newRequest();
    
    request.RedrawContext();
}